
import request from '@/utils/request';

// 查询列表
export async function queryKeys(params) {
  return request('/b/registerkey/queryPageList', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addKeys(params) {
  return request('/b/registerkey/add', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function editKeys(params) {
  return request('/b/registerkey/update', {
    method: 'POST',
    data: params,
  });
}


// 更新密钥
export async function updateKey(params) {
  return request('/b/registerkey/update', {
    method: 'POST',
    data: params,
  });
}


// 删除
export async function removeKeys(params) {
  return request('/b/registerkey/delete', {
    method: 'POST',
    data: params,
  });
}


// 历史密钥
export async function queryHistoryKey(params) {
  return request('/b/keyhistory/queryPageList', {
    method: 'POST',
    data: params,
  });
}

// 密钥规则
export async function querySelectKeyRule(params) {
  return request('/b/keyrule/queryList', {
    method: 'POST',
    data: params,
  });
}

// 应用系统
export async function querySelectApp(params) {
  return request('/b/application/queryList', {
    method: 'POST',
    data: params,
  });
}

// 场景
export async function querySelectScene(params) {
  return request('/b/kmsscene/queryList', {
    method: 'POST',
    data: params,
  });
}